<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="../../css/mui.min.css">
		<script src="../../js/mui.min.js"></script>
	</head>

	<body>
		<!--<body-->
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title" id="stationAddress">x号气象站</h1>
		</header>
		<div class="mui-content"></div>
	</body>
	<script src="../../js/jquery-3.2.1.js"></script>
	<script type="text/javascript" src="../../js/jquery.cookie.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
				reciveValues();
			});
		//启用双击监听
		mui.init({
			gestureConfig: {
				doubletap: true
			},
			subpages: [{
				url: 'stationInfo_sub.html',
				id: 'stationInfo_sub.html',
				styles: {
					top: '45px',
					bottom: '0px',
				}
			}]
		});
		var contentWebview = null;
		document.querySelector('header').addEventListener('doubletap', function() {
			if(contentWebview == null) {
				contentWebview = plus.webview.currentWebview().children()[0];
			}
			contentWebview.evalJS("mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)");
		});

		//接收一个值
		function reciveValues() {
			document.addEventListener('plusready', function() {
				// 在这里调用5+ API 
				var result = plus.storage.getItem("stationAddress");
				console.log('接收到的值为：' + result);
				document.getElementById('stationAddress').innerHTML = result ;
			}, false);
		}
	</script>

</html>